package com.pine.common.beans.pineframework.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pine.common.util.time.TimeUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色菜单表查询响应体
 * </p>
 *
 * @author pine manage
 * @since 2024-08-12
 */
@Data
@Schema(title = "SysRoleMenuQueryResponse", description = "角色菜单表查询响应体")
public class SysRoleMenuQueryResponse implements Serializable {

    @Serial
    private static final long serialVersionUID = -4193197014097204211L;
    /**
     * 主键
     */
    @Schema(title = "id", description = "主键")
    private Long id;
    /**
     * 角色id
     */
    @Schema(title = "roleId", description = "角色id")
    private Long roleId;
    /**
     * 菜单id
     */
    @Schema(title = "menuId", description = "菜单id")
    private Long menuId;
    /**
     * 创建时间-时间格式（yyyy-MM-dd HH:mm:ss）
     */
    @JsonFormat(pattern = TimeUtil.DEFAULT_DATE_TIME_PATTERN, timezone = TimeUtil.GMT_8)
    @Schema(title = "createTime", description = "创建时间-时间格式（yyyy-MM-dd HH:mm:ss）")
    private LocalDateTime createTime;
}
